package com.zhilei;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author 志磊
 */
@Slf4j
@SpringBootApplication(scanBasePackages = "com.zhilei")
@MapperScan(basePackages = "com.zhilei.mapper")
@EnableDiscoveryClient   // TODO 开启服务注册跟发现
@EnableRetry  // TODO 开启spring-retry
@EnableAsync // TODO 开启异步任务
@EnableFeignClients("com.zhilei.feign")
public class AuthApplication {
    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class, args);
        log.info("授权微服务启动成功！！！");
    }
}
